<template>
	<view class="signList">
		<navbar :showBack="true">签到记录</navbar>
		<view class="list">
			<view class="item" v-for="(item,index) in list" :key="index">
				<view class="data">{{item.month}}</view>
				<view class="listn">
					<view class="itemn acea-row row-between-wrapper" v-for="(item2,index2) in item.list" :key="index2">
						<view>
							<view class="name line1">{{item2.title}}</view>
							<view>{{item2.add_time}}</view>
						</view>
						<view class="num font-color">+{{item2.number}}</view>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	import api from "@/api/api.js";
	export default{
		data(){
			return{
				list:[]
			}
		},
		onLoad() {
			this.getSignList()
		},
		methods:{
			getSignList:function(){
				const that = this;
				api.sign.signMonth().then(e=>{
					console.log(e)
					if(e.status = 200){
						that.list = e.data
					}
				})
			}
		}
	}
</script>

<style>
	.signList .list .item .data{
		height: 80rpx;
		line-height: 80rpx;
		padding: 0 30rpx;
		font-size: 24rpx;
		color: #666;
	}
	.signList .list .item .listn{
		background-color: #fff;
		font-size: 24rpx;
		color: #999;
	}
	.signList .list .item .listn .itemn{
		height: 120rpx;
		border-bottom: 1rpx solid #eee;
		padding-right: 30rpx;
		margin-left: 30rpx;
	}
	.signList .list .item .listn .itemn .name{
		width: 390rpx;
		font-size: 28rpx;
		color: #282828;
		margin-bottom: 10rpx;
	}
	.signList .list .item .listn .itemn .num{
		font-size: 36rpx;
		font-family: 'Guildford Pro';
		color: #16ac57;
	}
</style>
